﻿$(function(){
    $('html').append('<img id="halo" title="Happy Noel" style="cursor:pointer;position:fixed;z-index:99999" height="120" src="../content/img/event/santa.gif"/>')
    setInterval(function () {
       //var $X=Math.ceil(Math.random()*$(window).width())
        //var $Y=Math.ceil(Math.random()*$(window).height())
        var $Y = Math.ceil($(window).height())*80/100;
        var $X=Math.ceil($(window).width());
        $('img#halo').animate({ 'left': -304, 'top': $Y }, 0);
        $("img#halo").animate({ 'left': $X, 'top': $Y }, 5000);
    },120000)
 })